package com.sunny.pojo;

import java.util.Date;

public class User {
    private Integer id;

    private String username;

    private String phoneNumber;

    private String domainAccount;

    private Integer role;

    private Integer state;

    private Date createTime;

    private Date updateTime;

    public User(Integer id, String username, String phoneNumber, String domainAccount, Integer role, Integer state, Date createTime, Date updateTime) {
        this.id = id;
        this.username = username;
        this.phoneNumber = phoneNumber;
        this.domainAccount = domainAccount;
        this.role = role;
        this.state = state;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public User() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber == null ? null : phoneNumber.trim();
    }

    public String getDomainAccount() {
        return domainAccount;
    }

    public void setDomainAccount(String domainAccount) {
        this.domainAccount = domainAccount == null ? null : domainAccount.trim();
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}